package com.example.blockbreaker;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;

public class CravingViewModel extends AndroidViewModel {
    private final CravingRepository repository;

    public CravingViewModel(@NonNull Application application) {
        super(application);
        repository = new CravingRepository(application);
    }

    public void insertCravingRecord(CravingRecord record) {
        repository.insertRecord(record);
    }
}